import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EActivityType

export class EActivityType {
  constructor(arg1: int) {
    this.__value = arg1;
    return;
  }

  public value(): int {
    return this.__value;
  }

  public __write(arg1: SerializeStream): void {
    arg1.writeShort(this.__value);
    return;
  }

  public static convert(arg1: int): EActivityType {
    return new EActivityType(arg1);
  }

  public static __read(arg1: SerializeStream): EActivityType {
    var loc1 = arg1.readShort();
    if (loc1 < 0 || loc1 >= 2020) {
      throw new MarshalException();
    }
    return EActivityType.convert(loc1);
  }

  public static /* const */ _EActivityTypeTransportTask: int = 2001;

  public static /* const */ _EActivityTypeBattleField: int = 2002;

  public static /* const */ _EActivityTypeLoopTask: int = 2003;

  public static /* const */ _EActivityTypeCopyMagicTower: int = 2004;

  public static /* const */ _EActivityTypeCopy38: int = 2005;

  public static /* const */ _EActivityTypeEvenCut: int = 2006;

  public static /* const */ _EActivityTypeCopy30: int = 2007;

  public static /* const */ _EActivityTypeOnlineTime: int = 2008;

  public static /* const */ _EActivityTypeCopy40: int = 2009;

  public static /* const */ _EActivityTypeCopy50: int = 2010;

  public static /* const */ _EActivityTypeCopy60: int = 2011;

  public static /* const */ _EActivityTypeTaskSchool: int = 2012;

  public static /* const */ _EActivityTypeTaskKillEvil: int = 2013;

  public static /* const */ _EActivityTypeCopyPetIsland: int = 2014;

  public static /* const */ _EActivityTypeArena: int = 2015;

  public static /* const */ _EActivityTypeFairyland: int = 2016;

  public static /* const */ _EActivityTypeTower70: int = 2017;

  public static /* const */ _EActivityTypeMining: int = 2018;

  public static /* const */ _EActivityTypeGangFights: int = 2019;

  public /* var */ __value: int;
}
